package com.example.springboot_sp.service.impl;

import com.example.springboot_sp.entity.Calendar;
import com.example.springboot_sp.entity.Word;
import com.example.springboot_sp.mapper.WordMapper;
import com.example.springboot_sp.service.IWordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 郭守军
 * @since 2022-08-18
 */
@Service
public class WordServiceImpl extends ServiceImpl<WordMapper, Word> implements IWordService {
    @Resource
    private WordMapper wordMapper;
    public List<Word> getByknow(Integer know) {
        return wordMapper.getByknow(know);
    }

    public void updateKnow(String word){
        wordMapper.updateKnow(word);
    }

    public void unknownDlete(String word){
        wordMapper.unknownDlete(word);
    }
}
